import React from 'react';
import { Result, Button } from 'antd';
import { useTranslation } from 'react-i18next';

export const ErrorPage: React.FC = () => {
  const { t } = useTranslation();
  
  return (
    <Result
      status="error"
      title={t('common.error')}
      subTitle={t('common.errorMessage')}
      extra={[
        <Button type="primary" key="back" onClick={() => window.location.reload()}>
          {t('common.refresh')}
        </Button>
      ]}
    />
  );
};